with open('hnjm.txt', encoding='utf8', mode='r+') as f:
    content = f.read()
    index = content.find('河南经贸')
    content = content[:index] + '我爱' + content[index:]
    #content = content.replace('河南经贸', '我爱河南经贸')
    content = content.replace('职业', '')

    with open('hnjm-最终.txt', encoding='utf8', mode='w') as f:
        f.write(content)
